<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge"><!--ie使用edge渲染模式-->
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" id="viewport"
          name="viewport">
    <meta name="renderer" content="webkit"><!--360渲染模式-->
    <meta name="format-detection" content="telephone=notelphone=no, email=no">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="apple-touch-fullscreen" content="yes"><!-- 是否启用 WebApp 全屏模式，删除苹果默认的工具栏和菜单栏 -->
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <!-- 设置苹果工具栏颜色:默认值为 default，可以定为 black和 black-translucent-->
    <meta http-equiv="Cache-Control" content="no-siteapp"><!-- 不让百度转码 -->
    <meta name="HandheldFriendly" content="true"><!-- 针对手持设备优化，主要是针对一些老的不识别viewport的浏览器，比如黑莓 -->
    <meta name="MobileOptimized" content="320"><!-- 微软的老式浏览器 -->
    <meta name="screen-orientation" content="portrait"><!-- uc强制竖屏 -->
    <meta name="x5-orientation" content="portrait"><!-- QQ强制竖屏 -->
    <meta name="browsermode" content="application"><!-- UC应用模式 -->
    <meta name="x5-page-mode" content="app"><!-- QQ应用模式 -->
    <meta name="msapplication-tap-highlight" content="no"><!-- windows phone 点击无高光 -->
    <title>典卡姆办公管理系统</title>
    <script src="../../res/js/jquery-3.4.1.min.js" charset="utf-8"></script>
    <link rel="shortcut icon" type="image/x-icon" href="../../res/images/favicon.ico">
    <link rel="stylesheet" type="text/css" href="../../res/css/base.css">
    <link rel="stylesheet" type="text/css" href="../../res/fonts/iconfont.css">
    <script type="text/javascript" src="../../res/framework/jquery-1.11.3.min.js"></script>
    <script type="text/javascript" src="../../res/js/base.js"></script>
    <script src="../../res/js/login_common.js" charset="utf-8"></script>
    <script src="../../res/layui/layui.js" charset="utf-8"></script>
    <script src="../../res/framework/cframe.js"></script><!-- 仅供所有子页面使用 -->
    <script src="../../res/js/Tools.js" charset="utf-8"></script>
    <link rel="stylesheet" href="../../res/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../res/layui_exts/laydateNote/laydateNote.css"/>
    <link rel="stylesheet" href="../../res/css/index.css">
    <style type="text/css">
        .title {
            margin-top: 20px;
            width: 150px;
            height: 20px;
            border-left: 3px solid #087D9B;
            line-height: 20px;
            display: inline;
            float: left
        }

        .titles {
            width: 1000px;
            height: 100px;
            float: left
        }

        .titles_div {
            width: 110px;
            height: 90px;
            float: left;
            margin: 10px;
        }

        .titles_div_a {
            width: 100%;
        }

        .title_font {
            width: 80px;
            line-height: 20px;
            text-align: center
        }

        .title_iocn {
            margin: 0px auto;
            width: 70px;
            height: 70px;
        }

        #titles li {
            float: left;
            width: 117px;
            height: 40px;
            line-height: 40px;
            background: #eeeeee;
            margin: 1px;
            text-align: center;
        }

        .noselect {
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

    </style>

</head>
<body id="bodys" style="display: none;width: 1920px">
<!--头部导航栏-->
<ul class="layui-nav">
    <li style="width: 180px;float: left">
        <!--<span class="layui-badge">9</span>-->
        <a href="">
            <div style="width: 180px;height: 60px;">
                <div style="float: left"><img width="60px" src="../../res/images/dkmLogo.png"/></div>
                <div style="float: left;font-size: 30px;color: white;font-family:'SimSun';line-height: 60px">典卡姆</div>
            </div>
        </a>
    </li>
    <!--<li class="layui-nav-item">
        &lt;!&ndash;<span class="layui-badge">9</span>&ndash;&gt;
        <a href="">典卡姆Log</a>
    </li>-->
    <li class="layui-nav-item" lay-unselect="">
        <a href="javascript:;">首页</a>
        <dl class="layui-nav-child">
            <dd><a href="index.html">首页</a></dd>
            <dd><a href="personalIndex.html">员工自助</a></dd>
        </dl>
    </li>
    <li class="layui-nav-item">
        <a>应用</a>
        <div class="layui-nav-child" style="width: 800px;color: black;">
            <ul>
                <li>
                    <div class="title">&nbsp;&nbsp;&nbsp;行政办公</div>
                    <div class="titles">
                        <div class="titles_div">
                            <a class="titles_div_a" href="front/officeSupplies/officeSupplies.html">
                                <div class="title_iocn">
                                    <img src="../../res/images/icon/bgyp.png"/>
                                </div>
                                <div class="title_font">办公用品管理</div>
                            </a>
                        </div>
                        <div class="titles_div">
                            <a href="front/oaAsset/oaAsset.html" class="titles_div_a">
                                <div class="title_iocn">
                                    <img src="../../res/images/icon/swzc.png"/>
                                </div>
                                <div class="title_font">实物资产管理</div>
                            </a>
                        </div>
                        <div class="titles_div">
                            <a href="front/client/client.html" class="titles_div_a">
                                <!--接入流程管理（只显示待审流程） -->
                                <div class="title_iocn">
                                    <img src="../../res/images/icon/khgl.png"/>
                                </div>
                                <div class="title_font">客户管理</div>
                            </a>
                        </div>
                        <div class="titles_div">
                            <a href="front/supplier/supplier.html" class="titles_div_a">
                                <!--接入流程管理（显示所有流程） -->
                                <div class="title_iocn">
                                    <img src="../../res/images/icon/gysgl.png"/>
                                </div>
                                <div class="title_font">供应商管理</div>
                            </a>
                        </div>
                        <div class="titles_div">
                            <a href="front/schedule/schedule.html" class="titles_div_a">
                                <div class="title_iocn">
                                    <img src="../../res/images/icon/rcgl.png"/>
                                </div>
                                <div class="title_font">日程管理</div>
                            </a>
                        </div>

                        <!--<div class="titles_div">
                            <a href="front/schedule/schedulefull.html" class="titles_div_a">
                            &lt;!&ndash;接入流程管理（只显示待审流程） &ndash;&gt;
                            <div class="title_iocn">
                                <img src="../../res/images/icon/hygl.png"/>
                            </div>
                            <div class="title_font">会议管理</div>
                            </a>
                        </div>-->
                        <div class="titles_div">
                            <a href="front/regime/Regime.html" class="titles_div_a">
                                <!--接入流程管理（显示所有流程） -->
                                <div class="title_iocn">
                                    <img src="../../res/images/icon/gfzd.png"/>
                                </div>
                                <div class="title_font">规范制度</div>
                            </a>
                        </div>
                    </div>
                </li>
                <!--<li>
                    <div class="title">&nbsp;&nbsp;&nbsp;流程管理</div>
                    <div class="titles">
                        <div class="titles_div">
                            <a href="" class="titles_div_a">
                            <div class="title_iocn">
                                <img src="../../res/images/icon/shep.png"/>
                            </div>
                            <div class="title_font">通用审批</div>
                            </a>
                        </div>
                        <div class="titles_div">
                            <a href="" class="titles_div_a">
                            <div class="title_iocn">
                                <img src="../../res/images/icon/jia.png"/>
                            </div>
                            <div class="title_font">加班流程</div>
                            </a>
                        </div>
                        <div class="titles_div">
                            <a href="" class="titles_div_a">
                            &lt;!&ndash; 接入流程管理只显示印章流程 &ndash;&gt;
                            <div class="title_iocn">
                                <img src="../../res/images/icon/lizhi.png"/>
                            </div>
                            <div class="title_font">离职流程</div>
                            </a>
                        </div>
                        <div class="titles_div">
                            <a href="" class="titles_div_a">
                            &lt;!&ndash; 接入流程管理只显示印章流程 &ndash;&gt;
                            <div class="title_iocn">
                                <img src="../../res/images/icon/yglz.png"/>
                            </div>
                            <div class="title_font">员工离职流程</div>
                            </a>
                        </div>

                        <div class="titles_div">
                            <a href="" class="titles_div_a">
                            &lt;!&ndash; 接入流程管理只显示印章流程 &ndash;&gt;
                            <div class="title_iocn">
                                <img src="../../res/images/icon/gzgt.png"/>
                            </div>
                            <div class="title_font">工作沟通</div>
                            </a>
                        </div>

                        <div class="titles_div">
                            <a href="" class="titles_div_a">
                            &lt;!&ndash;接入流程管理（只显示待审流程） &ndash;&gt;
                            <div class="title_iocn">
                                <img src="../../res/images/icon/ren.png"/>
                            </div>
                            <div class="title_font">任务管理</div>
                            </a>
                        </div>
                    </div>
                </li>-->
                <li>
                    <div class="title">&nbsp;&nbsp;&nbsp;信息中心</div>
                    <div class="titles">
                        <div class="titles_div">
                            <a href="front/workSummary/workSummary.html" class="titles_div_a">
                                <div class="title_iocn">
                                    <img src="../../res/images/icon/zong.png"/>
                                </div>
                                <div class="title_font">工作总结</div>
                            </a>
                        </div>
                        <div class="titles_div">
                            <a href="front/vote/vote.html" class="titles_div_a">
                                <div class="title_iocn">
                                    <img src="../../res/images/icon/tpgl.png"/>
                                </div>
                                <div class="title_font">投票管理</div>
                            </a>
                        </div>
                        <div class="titles_div">
                            <a class="titles_div_a" href="front/addressBook/addressBook.html">
                                <div class="title_iocn">
                                    <img src="../../res/images/icon/tel.png"/>
                                </div>
                                <div class="title_font">通讯录</div>
                            </a>
                            </a>
                        </div>
                        <!--<div class="titles_div">
                            <a href="" class="titles_div_a">
                            &lt;!&ndash;接入流程管理（只显示待审流程） &ndash;&gt;
                            <div class="title_iocn">
                                <img src="../../res/images/icon/zhishi.png"/>
                            </div>
                            <div class="title_font">知识中心</div>
                            </a>
                        </div>-->

                        <div class="titles_div">
                            <a href="back/news/news.html" class="titles_div_a">
                                <div class="title_iocn">
                                    <img src="../../res/images/icon/News.png"/>
                                </div>
                                <div class="title_font">新闻管理</div>
                            </a>
                        </div>

                    </div>

                </li>
                <!--<li>
                    <div class="title">&nbsp;&nbsp;&nbsp;管理应用</div>
                    <div class="titles">

                        <div class="titles_div">
                            <a href="" class="titles_div_a">
                            <div class="title_iocn">
                                <img src="../../res/images/icon/dbrw.png"/>
                            </div>
                            <div class="title_font">督办任务</div>
                            </a>
                        </div>
                        <div class="titles_div">
                            <a href="" class="titles_div_a">
                            <div class="title_iocn">
                                <img src="../../res/images/icon/hetong.png"/>
                            </div>
                            <div class="title_font">付款合同管理</div>
                            </a>
                        </div>
                    </div>
                </li>-->
                <li>
                    <div class="title">&nbsp;&nbsp;&nbsp;管理应用</div>
                    <div class="titles">

                        <div class="titles_div">
                            <a href="./front/car/car.html" class="titles_div_a">
                                <div class="title_iocn">
                                    <img src="../../res/images/icon/dbrw.png"/>
                                </div>
                                <div class="title_font">车辆管理</div>
                            </a>
                        </div>
                        <!--<div class="titles_div">
                            <a href="" class="titles_div_a">
                                <div class="title_iocn">
                                    <img src="../../res/images/icon/hetong.png"/>
                                </div>
                                <div class="title_font">付款合同管理</div>
                            </a>
                        </div>-->
                    </div>
                </li>
            </ul>
        </div>
    </li>
    <li class="layui-nav-item" lay-unselect="" style="float: right">
        <a href="javascript:;"><!--<img src="//t.cn/RCzsdCq" class="layui-nav-img">--><span id="yly">我</span></a>
        <dl class="layui-nav-child">
            <dd><a href="personalIndex.html">个人空间</a></dd>
            <dd><a href="front/person/personelcenter.html">个人设置</a></dd>
            <dd style="border-bottom: 1px solid black;border-top: 1px solid black;height: 30px;line-height: 30px;display: none"
                id="back"><a
                    href="back/main.html" target="_blank">后台管理</a></dd>
            <dd><a href="front/person/updatePassWord.html">修改密码</a></dd>
            <dd><a href="javascript:removeUser();">退出</a></dd>
        </dl>
    </li>
    <li class="layui-nav-item" lay-unselect="" style="float: right">
        <a href="javascript:;">
            <i class="layui-icon layui-icon-notice layui-icon-face-smile" style="font-size: 30px;"></i>
            <span id="hint" class="layui-badge-dot" style="top: 35%;left: 45px"></span>
        </a>
        <dl class="layui-nav-child" style="width: 180px;position:absolute;left: -110px;color: black" id="message">
            <dd><a href="javascript:;">个人设置个人设置个人...</a></dd>
            <dd><a href="javascript:;">个人设置个人设置个人...</a></dd>
            <dd><a href="javascript:;">个人设置个人设置个人...</a></dd>
            <dd><a href="javascript:;">个人设置个人设置个人...</a></dd>
            <dd><a href="javascript:;">个人设置个人设置个人...</a></dd>
            <dd><a href="javascript:;">个人设置个人设置个人...</a></dd>
            <dd><a href="javascript:;">个人设置个人设置个人...</a></dd>
            <dd><a href="javascript:;">个人设置个人设置个人...</a></dd>
            <dd><a href="javascript:;">个人设置个人设置个人...</a></dd>
            <dd><a href="javascript:;">个人设置个人设置个人...</a></dd>
        </dl>
    </li>

</ul>
<!--左侧菜单栏-->
<div style="float: left;width: 200px;margin-bottom: 49px">
    <div style="width: 100%;margin: 10px;height: 180px;background: #087D9B;padding-top: 10px">
        <div style="width: 100px;height: 100px;border-radius: 50%;background: #47B3DB;margin: 10px auto;line-height: 100px;text-align: center;font-size: 50px;color: #FFFFFF"
             id="names">超
        </div>
        <div style="margin: 10px auto;width: 100%;text-align: center;color: #B1CAD1" id="userName">管理员</div>
        <div style="margin: 10px auto;width: 100%;text-align: center;color: #FFFFFF" id="companyName"></div>
    </div>
    <div style="width: 100%;margin: 10px">
        <ul class="layui-nav layui-nav-tree layui-inline" lay-filter="demo" id="memu"
            style="margin-right: 10px;width: 100%;">

        </ul>
    </div>
</div>
<!--正文-->
<div style="float: left;width: 794px;background: white;margin-left: 20px;margin-top: 10px">

    <div style="width: 100%;height: 310px;background: white">
        <div class="layui-carousel" id="test1" lay-filter="test1">
            <div carousel-item="">
                <div>
                    <img src="../../res/images/1-1.jpg" alt="">
                </div>
                <div>
                    <img src="../../res/images/2-1.jpg" alt="">
                </div>
                <div>
                    <img src="../../res/images/3-1.jpg" alt="">
                </div>
            </div>
        </div>
    </div>
    <div style="width: 100%;background: white;height: 221px">
        <div style="width: 100%;background: white;float: left;">
            <div class="layui-tab layui-tab-card">
                <ul class="layui-tab-title" id="newsType">

                </ul>
                <div class="layui-tab-content" id="news">
                    <!-- <div class="layui-tab-item layui-show">
                         1. 高度默认自适应，也可以随意固宽。
                         <br>2. Tab进行了响应式处理，所以无需担心数量多少。
                     </div>
                     <div class="layui-tab-item">内容2</div>
                     <div class="layui-tab-item">内容3</div>-->
                </div>
            </div>
        </div>
    </div>
    <div style="width: 100%;height: 221px;background: white">
        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <div class="layui-tab layui-tab-card">
                <ul class="layui-tab-title">
                    <li class="layui-this">待办</li>
                    <li>待阅</li>
                    <li>已办</li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show" id="backlog"></div>
                    <div class="layui-tab-item" id="toBeRead"></div>
                    <div class="layui-tab-item" id="haveDone"></div>
                </div>
            </div>
        </div>
    </div>
    <!--<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
        <ul class="layui-tab-title" style="border: #E6E6E6 solid 1px">
            <li class="layui-this">常用流程</li>
        </ul>
        <div class="layui-tab-content" style="height: 56px;border: #E6E6E6 solid 1px">
            <div class="layui-tab-item layui-show">
                <ul id="titles" class="title_right">
                    <li>入职流程</li>
                    <li>入职流程</li>
                    <li>入职流程</li>
                    <li>入职流程</li>
                    <li>入职流程</li>
                </ul>
            </div>
        </div>
    </div>-->
</div>
<!--右侧菜单栏-->
<div style="float: left;width: 886px;background: white;margin: 10px">
    <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
        <ul class="layui-tab-title" style="border: #E6E6E6 solid 1px">
            <li class="layui-this">常用流程</li>
        </ul>
        <div class="layui-tab-content" style="height: 60px;border: #E6E6E6 solid 1px">
            <div class="layui-tab-item layui-show">
                <ul id="titles" class="title_right">
                    <li>入职流程</li>
                    <li>入职流程</li>
                    <li>入职流程</li>
                    <li>入职流程</li>
                    <li>入职流程</li>
                </ul>
            </div>
        </div>
    </div>
    <div style="width: 100%;height: 710px;background: white">
        <iframe src="front/schedule/schedulefull.html" height="710px" scrolling="no" width="100%">

        </iframe>
        <!--<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <ul class="layui-tab-title">
                <li class="layui-this">日历</li>
            </ul>
            <div class="layui-tab-content" style="height: 100px;">
                <div class="layui-tab-item layui-show">
                    <div style="width: 100%;height: 400px;background: white">
                        <div class="layui-container" style="padding: 0px;width: 100%">
                            <div class="layui-row">
                                <div class="layui-col-md12">
                                    &lt;!&ndash;<blockquote class="layui-elem-quote">
                                        基于layui的日历记事本
                                    </blockquote>&ndash;&gt;
                                    &lt;!&ndash;容器&ndash;&gt;
                                    <div class="layui-inline laydateNote" id="test-n2"></div>
                                    &lt;!&ndash;容器&ndash;&gt;

                                    &lt;!&ndash;详细记事本&ndash;&gt;
                                    &lt;!&ndash;<div class="laydateNotebook">
                                        <div class="box"></div>
                                    </div>&ndash;&gt;
                                    &lt;!&ndash;容器&ndash;&gt;
                                    <script type="text/html" id="fineTpl">
                                        <ul class="layui-timeline">
                                            {{each lists v i }}
                                            <li class="layui-timeline-item">
                                                <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
                                                <div class="layui-timeline-content layui-text">
                                                    <h3 class="layui-timeline-title">{{v.time}}</h3>
                                                    <p>
                                                        {{v.value}}
                                                    </p>
                                                    <ul>
                                                        <li>《登高》</li>
                                                        <li>《茅屋为秋风所破歌》</li>
                                                    </ul>
                                                </div>
                                            </li>
                                            {{/each}}
                                            <li class="layui-timeline-item">
                                                <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
                                                <div class="layui-timeline-content layui-text">
                                                    <div class="layui-timeline-title">...</div>
                                                </div>
                                            </li>
                                        </ul>
                                    </script>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>-->
    </div>
</div>

<script>
    $.ajaxSetup({
        async: false
    });
    $(function () {
        selectNewsType();
        $("#bodys").show();
    });

    function openNews(obj) {
        layer.open({
            type: 2,
            title: '查看',
            shadeClose: true,
            shade: false,
            maxmin: true, //开启最大化最小化按钮
            area: ['90%', '90%'],
            content: getRootPath() + 'pages/dkmoa/back/news/newsShow.html?pkNewsId=' + obj
        });
    }

    function selectNewsType() {
        var url = getRootPath() + "NewsType/selectTypeAndNews";
        var data = null;
        $("#newsType").html("");
        $("#news").html("");
        $.ajaxSettings.async = false;
        $.get(url, data, function (obj) {
            for (var i = 0; i < obj.data.data.length; i++) {
                if (i === 0) {
                    $("#newsType").append("<li class='layui-this'>" + obj.data.data[i].newsType.newsTypeName + "</li>");
                    $("#news").append("<div class='layui-tab-item layui-show' id='newsType_" + obj.data.data[i].newsType.pkNewsTypeId + "'></div>")
                } else {
                    $("#newsType").append("<li>" + obj.data.data[i].newsType.newsTypeName + "</li>");
                    $("#news").append("<div class='layui-tab-item' id='newsType_" + obj.data.data[i].newsType.pkNewsTypeId + "'></div>");
                }

                if (obj.data.data[i].news.length) {
                    for (var j = 0; j < obj.data.data[i].news.length; j++) {
                        if (obj.data.data[i].news[j]) {
                            $("#newsType_" + obj.data.data[i].newsType.pkNewsTypeId + "").append("<div><a href='javascript:openNews(\"" + obj.data.data[i].news[j].pkNewsId + "\");'>" + (j + 1) + ". " + obj.data.data[i].news[j].newsTitle + "</a></div>");
                        } else {
                            $("#newsType_" + obj.data.data[i].newsType.pkNewsTypeId + "").append("<div>没有任何内容</div>");
                        }
                    }
                } else {
                    $("#newsType_" + obj.data.data[i].newsType.pkNewsTypeId + "").append("<div>没有任何内容</div>");
                }
            }
        }, "json");
    }

</script>
<script>

    layui.use('element', function () {
        var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块

        //监听导航点击
        element.on('nav(demo)', function (elem) {
            layer.msg(elem.text());
        });
    });
</script>
<script>
    //调用
    layui
        .config({
            base: '../../res/layui_exts' //假设这是你存放拓展模块的根目录
        })
        .extend({
            //设定模块别名
            laydateNote: '/laydateNote/laydateNote', //如果 mymod.js 是在根目录，也可以不用设定别名
            artTemplate: '/artTemplate/artTemplate'
        });
    layui.use(['carousel', 'laydate'], function () {
        var laydate = layui.laydate,
            carousel = layui.carousel;

        //常规轮播
        carousel.render({
            elem: '#test1'
            , width: '100%'
            , height: '100%'
            , interval: 5000
        });

        //执行一个laydate实例
        //直接嵌套显示
        laydate.render({
            elem: '#test-n2'
            , position: 'static'
        });
    });

    //国际版

    // layui.use(['laydateNote'], function () {
    //     //调用
    //     var laydateNote = layui.laydateNote;
    //     laydateNote({
    //         elem: '#test-n2', //容器id,CLass
    //         //  url: 'test2.json', //异步数据接口,本地浏览时可不设置
    //         sort: 'up', //日期排序，默认不设置不排序，up 日期升序，down 日期降序
    //         fine: '.laydateNotebook', //开启详细模式
    //         done: function (data, chooseData, type) {
    //             //回调数据，这里发送你的请求ajax
    //         }
    //     });
    //
    // });

    $(function () {

        //菜单显示
        let url = getRootPath() + "OaPersonnelAction/getMemus";
        $.ajax({
            url: url,
            type: 'GET',
            async: false,
            success: res => {
                $("#memu").html("");
                $.each(res.data, function (index, item) {
                    if (item.jurisdictionSuperior === "0") {
                        $("#memu").append('<li class="layui-nav-item layui-nav-itemed"><a href="javascript:;">' + item.jurisdictionName + '</a><dl class="layui-nav-child" id="memu_' + item.pkJurisdictionId + '"></dl></li>');
                    }
                });
                $("#titles").html("");
                let x = 0;
                $.each(res.data, function (index, item) {

                    if (item.jurisdictionSuperior !== "0") {
                        x++;
                        if (x < 8) {
                            $("#titles").append('<li><a href="' + getRootPath() + item.jurisdictionUrl + '" target = "_blank">' + item.jurisdictionName + '</a></li>')
                        }
                        $("#memu_" + item.jurisdictionSuperior).append('<dd><a href="' + getRootPath() + item.jurisdictionUrl + '" target = "_blank">' + item.jurisdictionName + '</a></dd>')

                    }

                });
            },
            error: res => {
                loginObj.topWin.location.href = getRootPath() + "pages/dkmoa/login.html";
            }
        });
        getMessage();
      /*  setInterval("getMessage()", 2000);*/

            if (isButton("BACK")) {
                $("#back").show();
            }

        /*$.ajax({
            url: url,
            type:'GET',
            async: false,
            success:res=>{
            $.each(res.data,function (index,item) {
            if(item.jurisdictionCode ==="SUPER" ||item.jurisdictionCode === ){
               $("#back").show();
                return;
            }
        });
            },
            error:res=>{
                loginObj.topWin.location.href = getRootPath() + "pages/dkmoa/login.html";
            }
        });*/


        url = getRootPath() + "OaPersonnelAction/getUser";
        $.ajax({
            //请求方式
            type: "GET",
            //请求的媒体类型
            contentType: "application/json;charset=UTF-8",
            //请求地址
            url: url,
            //数据，json字符串
            async: true,
            //请求成功
            success: function (res) {
                $("#yly").html(res.data.personnelName);
                $("#userName").html(res.data.personnelName);
                $("#companyName").html(res.data.companyName);
                $("#names").html(res.data.personnelName.substr(0, 1));
            }
        });
    });

    function removeUser() {
        getAjaxById(getRootPath() + "OaPersonnelAction/logout");
        location.href = "login.html";
    }

    function getMessage() {
        //待办已办
        let res = getAjaxById(getRootPath() + "OaMessageAction/findAll");
        if (res) {
            if (res.Backlog.length > 0) {
                $("#backlog").html(""); // 待办清空
                $("#message").html(""); // 清空导航栏通知
                $.each(res.Backlog, function (index, item) {
                    $("#backlog").append('<div><a target="_blank" href="' + getRootPath() + item.messageUrl + item.formId + '">' + (index + 1) + '. ' + item.messageName + '</a></div>');
                    $("#message").append('<dd><a target="_blank" href="' + getRootPath() + item.messageUrl + item.formId + '">' + (index + 1) + '. ' + item.messageName + '</a></dd>');
                });
            } else {
                $("#hint").hide();
                $("#backlog").html("暂无待办事项，喝杯茶好好休息一下吧！");
                $("#message").html('<dd><a href="javascript:;">暂无待办事项</a></dd>');
            }

            if (res.ToBeRead.length > 0) {
                $("#toBeRead").html(""); // 待阅清空
                $.each(res.ToBeRead, function (index, item) {

                });
            } else {
                $("#toBeRead").html("没有待阅事项哦~"); // 待阅清空
            }

            if (res.HaveDone.length > 0) {
                $("#haveDone").html(""); // 已办清空
                $.each(res.HaveDone, function (index, item) {
                    $("#haveDone").append('<div><a target="_blank" href="' + getRootPath() + item.messageUrl + item.formId + '">' + (index + 1) + '. ' + item.messageName + '</a></div>');
                });
            } else {
                $("#haveDone").html("暂时还没有已办的事前哦"); // 已办清空
            }
        } else {
            loginObj.topWin.location.href = getRootPath() + "pages/dkmoa/login.html";
        }

    }
</script>
<script src="../../res/js/jquery-1.11.3.min.js" type="text/javascript"></script>
<script src="../../res/js/wySilder.min.js" type="text/javascript"></script>
<script>
    /*$(function () {
        $(".js-silder").silder({
            auto: true,//自动播放，传入任何可以转化为true的值都会自动轮播
            speed: 20,//轮播图运动速度
            sideCtrl: true,//是否需要侧边控制按钮
            bottomCtrl: true,//是否需要底部控制按钮
            defaultView: 0,//默认显示的索引
            interval: 30000,//自动轮播的时间，以毫秒为单位，默认3000毫秒
            activeClass: "active",//小的控制按钮激活的样式，不包括作用两边，默认active
        });
    });*/
</script>
<!--<div style="height: 49px"></div>-->
<div class="noselect"
     style="width: 100%;background:#087D9B;height: 49px;line-height: 49px;color: white;position: fixed;bottom:0px ;">
    &nbsp;&nbsp;&nbsp;©
    2020&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;湖南典卡姆信息科技有限公司
</div>
</body>
</html>